package com.lion.common.modules.file.common.utils;

/**
 * @author Chris Chan
 * Create on 2022/1/9 7:50
 * Use for: 网络环境管理器
 * Explain:
 */
public class WebEventManager {
    private static String host = "localhost";
    private static int port = 8080;

    public static String getHost() {
        return host;
    }

    public static void setHost(String host) {
        WebEventManager.host = host;
    }

    public static int getPort() {
        return port;
    }

    public static void setPort(int port) {
        WebEventManager.port = port;
    }

    /**
     * 获取本项目网络服务URL
     * 后面不带/
     *
     * @return
     */
    public static String getServerUrl() {
        return "http://" + host + ":" + port;
    }
}
